import { destruct } from '@/common/common'

const largeNumFormat = num => destruct(num).num + destruct(num).unit

const numFix = l => val => val.toFixed(l);

const numFix2 = numFix(2)

export {
  largeNumFormat,
  numFix2
}